package dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pojo.News;

public interface NewsMapper {

	int add(@Param("news") News news);

	int update(@Param("news")News news);

	int delete(@Param("nIds")List<Integer> ids);

	News getNewsByIdOrTitle(
			@Param("nId")int id,
			@Param("t")int title
			);
	
	List<News> selectNewsList(
			@Param("unit") String unit,
			@Param("t") String title,
			@Param("st") String startTime,
			@Param("et") String endTime,
			@Param("uId") Integer uId
			);

}
